using System;

namespace DMS.DTOs
{
    public class ResultDTO
    {
        public string[] Messages { get; set; }
    }

    public class ResultDTO<T> : ResultDTO
    {
        public T Value { get; set; }

        public ResultDTO(T value)
        {
            Value = value;
        }
    }

    public class ResultListDTO<T> : ResultDTO
    {
        public T[] Items { get; set; }

        public ResultListDTO(T[] items)
        {
            Items = items;
        }
    }
}
